package com.zby.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum CategoryEnum implements BaseEnum {
    // java python c++ c# golang
    CATEGORY_ENUM_JAVA(0, "java"),
    CATEGORY_ENUM_PYTHON(1, "python"),
    CATEGORY_ENUM_C(2, "c++"),
    CATEGORY_ENUM_C3(3, "c#"),
    CATEGORY_ENUM_GOLANG(4, "golang"),
    CATEGORY_ENUM_DEFAULT(5, "默认分类"),
    CATEGORY_ENUM_HTML_CSS_JS(6, "前端");

    @EnumValue
    private final Integer code;

    @JsonValue
    private final String name;
}
